This small patch output message of elf_sanity_check as x86.
Currently this panic is the only following message.
(XEN) *** LOADING DOMAIN 0 ***
(XEN)
(XEN) ****************************************
(XEN) Panic on CPU 0:
(XEN) Could not set up DOM0 guest OS
(XEN) ****************************************
(XEN)
(XEN) Reboot in five seconds...
(XEN) machine_restart called: spinning....
Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
// see arch/x86/xxx/domain_build.c
int elf_sanity_check(Elf_Ehdr *ehdr)
{
- return (IS_ELF(*ehdr));
+ if (!(IS_ELF(*ehdr)))
+ {
+ printk("DOM0 image is not a Xen-compatible Elf image.\n");
+ return 0;
+ }
+ return 1;
}
static void copy_memory(void *dst, void *src, int size)